#include <stdio.h>
#include <string.h> 
struct Consumption
{
    char city[20];
    int year ;
    double usage;
};

struct Resource
{
    char material[30];
    double longitude;
    double latitude;
    double quantity;
    char units[20];
};

void main (void )
{
    struct Resource metal, fuel;
    struct Resource wood = {"Oak", 32.5, 13.2, 5e+8, "hectares"};
    struct Consumption water, power;
    metal.longitude = 57.3;
    metal.latitude = 32.1;
    metal.quantity = 3e+10;
    strcpy (metal.material, "Iron");
    strcpy (metal.units, "cubic meters");

    printf ("The metal information is:\n%s\n%4.1lf degrees longitude\n"
            "%4.1lf degrees latitude\n%e %s\n\n",
            metal.material, metal.longitude, metal.latitude,
            metal.quantity, metal.units);

    printf ("Enter water and power:\ncity, year and usage\n");
    scanf ("%s%d%lf%s%d%lf", water.city, &water.year, &water.usage,
           power.city, &power.year, &power.usage);

    printf ("\n\nThe water and power are:\n%s\n%d\n%5.0lf million liters\n\n"
            "%s\n%d\n%5.0lf mega watts\n",
            water.city, water.year, water.usage,
            power.city, power.year, power.usage);
}







